#include <iostream>
#include "stock00.h"
void sayHiToSomeBody();
void testStack ();
int main() {
    enum class Color {yellow, red, blue};
    auto yellow = 0;
    Color c = Color::blue;
    // 1. 如果加了class，那么和数字做比较的时候也要加上static_cast进行强制转换，这样更加安全，所以建议给枚举加上class
    // 2. 如果没有加class，那么这个作用域内就无法使用yellow命名的变量了
    int covertedC = static_cast<int>(c);
    std::cout << "yellow's value is: " << yellow << " and c is: " << covertedC << std::endl;
    testStack();
    return 0;
}

void testStack (){
    // 这里测试调用一个静态方法
    Stock::printStr("This is a string");
}

void sayHiToSomeBody(){
    std::cout << "Hello, World!" << std::endl;
    using namespace std; 
    cout << "Please input your age ..." << endl;
    int age;
    cin >> age;
    cout << "Hi I am Mike and " << age << " years old" << endl;
}
